package com.cts.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cts.entity.BlogTag;
import com.cts.mapper.BlogTagMapper;
import com.cts.service.BlogTagService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author tongshengchen
* @description 针对表【blog_tag】的数据库操作Service实现
* @createDate 2023-02-06 12:25:57
*/
@Slf4j
@Service
public class BlogTagServiceImpl extends ServiceImpl<BlogTagMapper, BlogTag>
    implements BlogTagService {

    @Autowired
    BlogTagMapper blogTagMapper;

    @Override
    public Long[] getTagList(Long id) {
        Long[] tagList = blogTagMapper.getTagList(id);
        return tagList;
    }

    @Override
    public Boolean removeTags(Long id) {
        Boolean flag = blogTagMapper.deleteTags(id);
        return flag;
    }

}




